//
//  ZLStatusToolbar.swift
//  ZLWeibo
//
//  Created by zhanglongtao on 16/12/28.
//  Copyright © 2016年 hanju001. All rights reserved.
//

import UIKit

class ZLStatusToolbar: UIView {

    
    @IBOutlet weak var retweetedButton: UIButton!
    @IBOutlet weak var commentedButton: UIButton!
    @IBOutlet weak var likedButton: UIButton!
    
    var viewModel: ZLStatusViewModel? {
        
        didSet{

            //retweetedButton.setTitle("\(viewModel?.status.reposts_count)", for: .normal)
            //commentedButton.setTitle("\(viewModel?.status.reposts_count)", for: .normal)
            //likedButton.setTitle("\(viewModel?.status.reposts_count)", for: .normal)
            
            retweetedButton.setTitle(viewModel?.reweetStr, for: .normal)
            commentedButton.setTitle(viewModel?.commetntStr, for: .normal)
            likedButton.setTitle(viewModel?.likeStr, for: .normal)


        }
    }
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
